package server;

public class Demo {

	public static void main(String[] args) {
		int num = (args.length > 0) ? Integer.parseInt(args[0]) : 1;
		Server.LOAD = (args.length > 1) ? Integer.parseInt(args[1]) : 50;
		try {
			for (int i = 0; i < num; i++) {
				Server.main(new String[]{"" + i, "server" + i});
				Thread.sleep(100);
			}
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(-1);
		}
	}
}
